//package com.sunbird.crm.base.configurate;
//
//import com.zaxxer.hikari.HikariDataSource;
//import org.apache.commons.dbcp.BasicDataSource;
//import org.mybatis.spring.annotation.MapperScan;
//import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties;
//import org.springframework.boot.context.properties.ConfigurationProperties;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.context.annotation.Primary;
//
///**
// * @ClassName DataSourceConfig
// * @Descriptiom TODO
// * @Author Sunbird
// * @Date 2019/8/9 20:40
// * @Version 1.0
// **/
//@Configuration
//@MapperScan(basePackages = "com.sunbird.crm.dao", sqlSessionFactoryRef = "test1SqlSessionFactory")
//public class DataSource1Config {
//
//    @Primary
//    @Bean
//    @ConfigurationProperties(prefix = "spring.datasource.master")
//  public DataSourceProperties  ds1Properties(){
//      return new DataSourceProperties();
//  }
//    @Primary
//    @Bean
//    @ConfigurationProperties("spring.datasource.master")
//    public HikariDataSource  dataSourceOrder(){
//        return  ds1Properties().initializeDataSourceBuilder().type(HikariDataSource.class).build();
//    }
//
////    @Bean
////    @ConfigurationProperties(prefix = "spring.datasource.slaver")
////    public DataSourceProperties ds2Properties(){
////        return new DataSourceProperties();
////    }
////
////    @Bean
////    @ConfigurationProperties("spring.datasource.slaver")
////    public BasicDataSource dataSourceAuth(){
////        return  ds2Properties().initializeDataSourceBuilder().type(BasicDataSource.class).build();
////    }
//}
